/* 自定义样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 图表容器样式 */
.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}

/* 按钮悬停效果 */
button {
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 结果展示样式 */
.result-box {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 1rem;
    margin: 1rem 0;
}

.formula-box {
    background: #f0f8ff;
    border: 1px solid #d1ecf1;
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .lg\\:col-span-3 {
        grid-column: span 1;
    }
    
    .lg\\:col-span-1 {
        grid-column: span 1;
    }
}

/* 数学公式样式 */
.math-formula {
    font-size: 1.1em;
    line-height: 1.8;
    text-align: center;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 5px;
    margin: 10px 0;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 高亮区域 */
.highlight-area {
    background-color: rgba(52, 152, 219, 0.2);
    border: 2px solid #3498db;
    border-radius: 4px;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
